package cn.com.seederland.gkrpc.codec;

import com.alibaba.fastjson.JSON;

/**
 * @ClassName JSONEncoder
 * @Author SighFate
 * @Date 2020/10/06 22:15
 * @Version 1.0
 * @Description 基于JSON序列化实现
 */
public class JSONEncoder implements Encoder {

    @Override
    public byte[] encode(Object object) {
        return JSON.toJSONBytes(object);
    }
}
